﻿

using System;

namespace Demo.Domain
{
    public interface IUserRepository
    {
         User GetByName(string userName);

         bool ExistsWithUserName(string userName);

         bool Exists(string userName, string password);

         void CreateUser(string userName, string password, int roleID);

         bool ChangePassword(string userName, string password, string newPassword);

         bool ChangeRole(string userName, int roleID);

    }
}
